package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.StrategyCommend;
import cn.wolfcode.luowowo.article.query.StrategyCommendQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCommendService {

    PageInfo query(StrategyCommendQuery qo);

    /**
     * 攻略推荐保存和更新
     * @param strategyCommend
     */
    void saveOrUpdate(StrategyCommend strategyCommend);

    /**
     * 攻略推荐删除
     * @param id
     */
    void delete(Long id);

    /**
     * 查询攻略推荐里的前五个展示在攻略主页
     * @return
     */
    List<StrategyCommend> getTop5();

}
